From: Tobias Frost Date: Tue, 6 Jan 2026 12:16:13 +0000 (+0100) Subject: Do not enforce atomics support on archs not supporting it. X-Git-Tag: archive/raspbian/7.9.2+dfsg-3+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0979193f65904a9406a3f3837585118ca1c151f8;p=opencascade.git Do not enforce atomics support on archs not supporting it. Forwarded: no, Debian specific. Last-Update: 2018-05-26 armel seems to have no atomic support on opencascade, so make it possible to hint the build system not to enforce it. Last-Update: 2018-05-26 Gbp-Pq: Name armel-ftbfs.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f8d62e06b..d57fee251 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,11 @@ else () endif() set (CMAKE_CXX_STANDARD_REQUIRED ON) +# Make it possible to ignore if there are no atomics support, needed for armel. +IF(IGNORE_NO_ATOMICS) + ADD_DEFINITIONS(-DIGNORE_NO_ATOMICS) +ENDIF(IGNORE_NO_ATOMICS) + # include cmake file macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE) include (${CMAKE_SOURCE_DIR}/${BEING_INCLUDED_FILE}.cmake)